package com.ruoyi.political_status.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.political_status.mapper.TbPoliticalStatusMapper;
import com.ruoyi.political_status.domain.TbPoliticalStatus;
import com.ruoyi.political_status.service.ITbPoliticalStatusService;

/**
 * 政治面貌信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-02
 */
@Service
public class TbPoliticalStatusServiceImpl implements ITbPoliticalStatusService 
{
    @Autowired
    private TbPoliticalStatusMapper tbPoliticalStatusMapper;

    /**
     * 查询政治面貌信息
     * 
     * @param id 政治面貌信息主键
     * @return 政治面貌信息
     */
    @Override
    public TbPoliticalStatus selectTbPoliticalStatusById(Long id)
    {
        return tbPoliticalStatusMapper.selectTbPoliticalStatusById(id);
    }

    /**
     * 查询政治面貌信息列表
     * 
     * @param tbPoliticalStatus 政治面貌信息
     * @return 政治面貌信息
     */
    @Override
    public List<TbPoliticalStatus> selectTbPoliticalStatusList(TbPoliticalStatus tbPoliticalStatus)
    {
        return tbPoliticalStatusMapper.selectTbPoliticalStatusList(tbPoliticalStatus);
    }

    /**
     * 新增政治面貌信息
     * 
     * @param tbPoliticalStatus 政治面貌信息
     * @return 结果
     */
    @Override
    public int insertTbPoliticalStatus(TbPoliticalStatus tbPoliticalStatus)
    {
        return tbPoliticalStatusMapper.insertTbPoliticalStatus(tbPoliticalStatus);
    }

    /**
     * 修改政治面貌信息
     * 
     * @param tbPoliticalStatus 政治面貌信息
     * @return 结果
     */
    @Override
    public int updateTbPoliticalStatus(TbPoliticalStatus tbPoliticalStatus)
    {
        return tbPoliticalStatusMapper.updateTbPoliticalStatus(tbPoliticalStatus);
    }

    /**
     * 批量删除政治面貌信息
     * 
     * @param ids 需要删除的政治面貌信息主键
     * @return 结果
     */
    @Override
    public int deleteTbPoliticalStatusByIds(Long[] ids)
    {
        return tbPoliticalStatusMapper.deleteTbPoliticalStatusByIds(ids);
    }

    /**
     * 删除政治面貌信息信息
     * 
     * @param id 政治面貌信息主键
     * @return 结果
     */
    @Override
    public int deleteTbPoliticalStatusById(Long id)
    {
        return tbPoliticalStatusMapper.deleteTbPoliticalStatusById(id);
    }
}
